package com.ruoyi.cpsp.mapper;/*
    @author neu.xiangwenjuan
    @create 2022/4/15
*/

import com.ruoyi.cpsp.domain.EvaluateRecordDetail;
import com.ruoyi.cpsp.domain.EvaluateRecordDetailEn;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EvaluateRecordDetailMapper {

    List<EvaluateRecordDetailEn> selectAllDetail(@Param("departmentId") String departmentId);

    List<EvaluateRecordDetailEn> selectDetailByEmployee(@Param("employeeIdCard") String employeeIdCard);

    List<EvaluateRecordDetailEn> selectDetailByEmployeeYear(@Param("employeeIdCard") String employeeIdCard,
                                                            @Param("year") Integer year,
                                                            @Param("quarter") Integer quarter);

    List<EvaluateRecordDetailEn> selectByDepart(@Param("department") String department,@Param("teamGroup") String teamGroup,@Param("startTime") String startTime,@Param("endTime") String endTime);

    EvaluateRecordDetail selectByPrimaryKey(@Param("id") Integer id);

    int insertDetail(EvaluateRecordDetail evaluateRecordDetail);

    int deleteRecordDetail(@Param("id") Integer id);

    EvaluateRecordDetailEn selectDetailById(@Param("id") Integer id);

    int updateByIdSelective(EvaluateRecordDetail evaluateRecordDetail);

    List<String> getEvaluateCardList(@Param("year") Integer year,
                                     @Param("quarter") Integer quarter);
}
